package com.ams.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ams.mapper.AsUserMapper;
import com.ams.pojo.AsUser;
import com.ams.service.LoginService;

@Service
@Transactional
public class LoginServiceImpl implements LoginService {
	@Autowired
	private AsUserMapper asUserMapper;
	@Override
	public AsUser selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return asUserMapper.selectByPrimaryKey(id);
	}
	@Override
	public AsUser selectAsUserByLogin(AsUser asUser) {
		return asUserMapper.selectAsUserByLogin(asUser.getUsercode(), asUser.getUserpassword());
	}
}
